package com.h3c.nem.mapstruct;

import com.h3c.nem.dto.TbOfferSendRecordDTO;
import com.h3c.nem.entity.TbOfferSendRecord;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface TbOfferSendRecordMapstruct {

    TbOfferSendRecordMapstruct INSTANCE = Mappers.getMapper(TbOfferSendRecordMapstruct.class);

    /**
     * DTO转成实体类
     * @param workerDTO
     * @return
     */
    TbOfferSendRecord dtoToEntity(TbOfferSendRecordDTO workerDTO);

    /**
     * entity转dto
     * @param worker
     * @return
     */
    TbOfferSendRecordDTO entityToDto(TbOfferSendRecord worker);

    /**
     * entity转dto
     * @param worker
     * @return
     */
    List<TbOfferSendRecordDTO> entityToDto(List<TbOfferSendRecord> worker);
}
